package com.lsp.test.blockingqueue;

public class ChainExample {
    public static void main(String[] args) {
        FinalProcessor finalProcessor = new FinalProcessor();
        PrintProcessor printProcessor = new PrintProcessor(finalProcessor);
        printProcessor.start();
        SaveProcessor saveProcessor = new SaveProcessor(printProcessor);
        saveProcessor.start();
        VaildProcessor vaildProcessor = new VaildProcessor(saveProcessor);
        vaildProcessor.start();

        Request request = new Request();
        request.setName("lsp");
        request.setUrl("http://www.lspshop.cn");
        vaildProcessor.processRequest(request);
    }
}
